package cn.test;

public class Rectangle {
	private double width = 1.0;
	private double height = 1.0;

	public double getWidth() {
		return width;
	}

	public void setWidth(double width) {
		this.width = width;
	}

	public double getHeight() {
		return height;
	}

	public void setHeight(double height) {
		this.height = height;
	}

	@Override
	public String toString() {
		return "[width=" + width + ", height=" + height + ",getArea" + getArea(width, height) + ",getPerimeter"+getPerimeter(width,height)+"]";
	}

	public Rectangle() {
	}

	public Rectangle(double width, double height) {
		this.width=width;
		this.height=height;

	}

	public double getArea(double width, double height) {

		return width * height;
	}

	public double getPerimeter(double width, double height) {
		return 2 * (width + height);
	}
	// public String toString() {
	// @Test
	//
	// return " ";
	// }
	//
}
